Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: skip bootstrap nodes that are lower than last checkpoint #8519

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented Aug 19, 2022

Also outdated nodes now get 50 fail points instead of 2. Not necessary anymore with #8544.

@SChernykh
Copy link
Contributor

Also outdated nodes now get 50 fail points instead of 2

Hmm, I don't see "50" anywhere in this code.

@selsta
Copy link
Collaborator Author

selsta commented Aug 21, 2022

hmm, messed something up in git, will update

@selsta
Copy link
Collaborator Author

selsta commented Aug 23, 2022

Verified that it initializes correctly, and tested on mainnet, testnet and stagenet.

Copy link
Contributor

@jeffro256 jeffro256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reference to checkpoints object should be const since there's no good reason to modify your checkpoints at runtime

src/cryptonote_core/blockchain.h Outdated Show resolved Hide resolved
src/cryptonote_core/cryptonote_core.cpp Outdated Show resolved Hide resolved
src/cryptonote_core/cryptonote_core.h Outdated Show resolved Hide resolved
@selsta
Copy link
Collaborator Author

selsta commented Aug 23, 2022

@jeffro256 thanks, totally forgot to make it const

@selsta
Copy link
Collaborator Author

selsta commented Sep 6, 2022

Updated, with #8544 it isn't necessary anymore to set a custom fail points. This also makes the diff smaller.

@luigi1111 luigi1111 merged commit ddb434f into monero-project:master Sep 9, 2022
@selsta selsta deleted the bootstrap-checkpoint branch September 9, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants